//
// Decompiled by Jadx - 390ms
//
package me.plusne.Adapter.Login;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.view.View;
import android.widget.ImageView;
import android.widget.Switch;
import android.widget.TextView;
import androidx.activity.b;
import androidx.recyclerview.widget.RecyclerView;
import fi.w;
import fn.y;
import me.plusne.common.Json.Login.JsonLoginQuerySet;
import r.e;
import r.g;

@SuppressLint({"UseSwitchCompatOrMaterialCode"})
public class HookSetListAdapter$a extends RecyclerView.ae {
    public static final int a = 0;
    public final View b;
    public final TextView c;
    public final TextView d;
    public final TextView e;
    public final Switch f;
    public final ImageView g;
    public final ImageView h;
    public final HookSetListAdapter i;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public HookSetListAdapter$a(HookSetListAdapter hookSetListAdapter, View view) {
        super(view);
        this.i = hookSetListAdapter;
        this.b = view.findViewById(0x7f8201a7);
        g.v((ImageView) view.findViewById(0x7f820162), -2113535894);
        g.v((ImageView) view.findViewById(0x7f8200d9), -2113535894);
        this.c = (TextView) view.findViewById(0x7f8201ff);
        this.d = (TextView) view.findViewById(0x7f820090);
        TextView textView = (TextView) view.findViewById(0x7f82021d);
        this.e = textView;
        this.g = (ImageView) view.findViewById(0x7f8200d9);
        this.f = (Switch) view.findViewById(0x7f8201db);
        this.h = (ImageView) view.findViewById(0x7f820162);
        e.d(-2113535874, 10.0f, textView);
    }

    public static boolean j(JsonLoginQuerySet.SetBean setBean, Activity activity) {
        String str;
        if (setBean.getLevel() == 0 || setBean.getLevel() <= y.by.getUserInfo().getPay()) {
            return true;
        }
        int level = setBean.getLevel();
        if (level != 1) {
            if (level != 2) {
                if (level != 3) {
                    if (level != 4) {
                        str = "此功能只支持个性化会员以上使用";
                    } else {
                        str = "此功能只支持全永久会员以上使用";
                    }
                } else {
                    str = "此功能只支持全非永久会员以上使用";
                }
            } else {
                str = "此功能只支持单永久会员以上使用";
            }
        } else {
            str = "此功能只支持单非永久会员以上使用";
        }
        b.r(activity, str);
        return false;
    }

    public final void k(JsonLoginQuerySet.SetBean setBean) {
        if (setBean.getRestart() == 1) {
            w wVar = new w(this.i.c);
            wVar.bj(fi.e.MESSAGE);
            wVar.aj = "重启提示";
            wVar.bb();
            wVar.ak = "当前功能重启后生效,是否重启";
            wVar.bb();
            wVar.r = "立即重启";
            wVar.bb();
            wVar.v = new h(0);
            wVar.bk();
        }
    }
}
